package com.atguigu.redisspring1;

import org.junit.Test;
import redis.clients.jedis.Jedis;

public class RedisTest {
    @Test
    public void redisTest(){
        Jedis jedis = new Jedis("192.168.126.128",6379);
//        jedis.set("test","atguigu");
        String s = jedis.get("test");
        System.out.println(s);
        jedis.keys("*").forEach(System.out::println);
    }

    @Test
    public void test2() {
        Jedis jedis = new Jedis("192.168.126.128", 6379);
        jedis.lpush("list", "a", "b", "c", "d", "e");
        jedis.lrange("list", 0, -1).forEach(System.out::println);
    }
    @Test
    public void testGit(){
        System.out.println("exce02");
        System.out.println("exce01");
        System.out.println("变动01");
    }
}
